<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	if (request.getParameter("group") == null) {
%>
<script>
	$("#events_content").hide().fadeIn(1000).html(
			"Wybierz jedną z opcji po lewej stronie.");
</script>
<%
	} else if ("newEvent".equals(request.getParameter("group"))) {
%>
<script>
	$("#events_content").hide().fadeIn(1000).load("events/newEvent.jsp");
</script>
<%
	} else if ("takePart".equals(request.getParameter("group"))) {
%>
<script>
	$("#events_content").hide().fadeIn(1000).load("events/takePart.jsp");
</script>
<%
	} else if ("proposition".equals(request.getParameter("group"))) {
%>
<script>
	$("#events_content").hide().fadeIn(1000).load(
			"events/events_Proposition.jsp");
</script>
<%
	}
	 else if ("all".equals(request.getParameter("group"))) {
		 %>
		 <script>
		 	$("#events_content").hide().fadeIn(1000).load(
		 			"events/events_all.jsp");
		 </script>
		 <%
		 	}

	else if ("organizeByMe".equals(request.getParameter("group"))) {
%>
<script>
	$("#events_content").hide().fadeIn(1000).load(
			"events/events_organizeByMe.jsp");
</script>
<%
	}

	else {
%>
<script>
	$("#events_content").hide().fadeIn(1000).html(
			"Podana podstrona nie istnieje.");
</script>
<%
	//out.println("Podana podstrona nie istnieje.");
	}
%>
